<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>FIRST</title>
		<style type="text/css">
			*{
				padding: 0;
				margin: 0;
			}
			.container{
				width: 100vw;
				height: 100vh;
				display: flex;
				align-items: center;
				justify-content: center;
			}
		canvas{
			width: 400px;
			height: 400px;
			border: 10px solid #333333;
		}	
		
		</style>
	</head>
	<body>
		<div class="container">
		<canvas id="canvas" width="500" height="500"></canvas>
		
		</div>
	</body>
	<script>
		window.onload = function() {
			
			let oCanvas = document.getElementById('canvas');
		
			console.dir(oCanvas);
			
			let oPen=oCanvas.getContext("2d");
			
			var oCnv = document.getElementById('canvas');
			
			var cxt = oCnv.getContext("2d");
			
			oPen.fillRect(0,200,100,100);
			
			let width = oCnv.width - 100;
			let height = oCnv.height - 100;
			
			let step = 100;
			
			
			document.onkeypress = function (e) {
				if(e.keyCode  == 32){
					
			    }
		    }
		}	
	</script>
</html>
